package org.feng.demofx.sys;

import java.util.Objects;

/**
 * TODO
 *
 * @author feng
 */
public class PageNodeDefine {
    private String pageKey;
    private String pageName;
    private Integer order = 0;

    public String getPageKey() {
        return pageKey;
    }

    public void setPageKey(String pageKey) {
        this.pageKey = pageKey;
    }

    public String getPageName() {
        return pageName;
    }

    public void setPageName(String pageName) {
        this.pageName = pageName;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }
        if (object == null || getClass() != object.getClass()) {
            return false;
        }
        PageNodeDefine that = (PageNodeDefine) object;
        return Objects.equals(pageKey, that.pageKey);
    }

    @Override
    public int hashCode() {
        return Objects.hash(pageKey);
    }
}
